<template>
  <div>
    <my-radio v-model="radio" label="label1" @change="onChange"></my-radio>
    <my-radio v-model="radio" label="label2" @change="onChange"></my-radio>
    <p>当前radio：{{radio}}</p>
  </div>
</template>
<script>
import MyRadio from './son.vue'
export default {
  components: {
    MyRadio
  },
  data(){
    return{
      radio: 'label1' // 默认选中label1
    }
  },
  methods: {
    onChange (val) {
      console.log(val);
    }
  }
}
</script>
